import request from '@/utils/request'

// 查询门店申请列表
export function listStoreApply(query) {
  return request({
    url: '/admin/store/storeApply/list',
    method: 'get',
    params: query
  })
}

// 查询门店申请详细
export function getStoreApply(id) {
  return request({
    url: '/admin/store/storeApply/' + id,
    method: 'get'
  })
}

// 新增门店申请
export function addStoreApply(data) {
  return request({
    url: '/admin/store/storeApply',
    method: 'post',
    data: data
  })
}

// 修改门店申请
export function updateStoreApply(data) {
  return request({
    url: '/admin/store/storeApply',
    method: 'put',
    data: data
  })
}
// 通过门店申请
export function pass(ids) {
  return request({
    url: `/admin/store/storeApply/pass/${ids}`,
    method: 'put'
  })
}
export function refuse(data) {
  return request({
    url: `/admin/store/storeApply/refuse`,
    method: 'put',
    data:data
  })
}

// 删除门店申请
export function delStoreApply(id) {
  return request({
    url: '/admin/store/storeApply/' + id,
    method: 'delete'
  })
}
// 删除门店申请
export function logicDelStoreApply(id) {
  return request({
    url: '/admin/store/storeApply/' + id,
    method: 'delete'
  })
}

// 导出门店申请
export function exportStoreApply(query) {
  return request({
    url: '/admin/store/storeApply/export',
    method: 'get',
    params: query
  })
}
